<?php
namespace App\Http\Controllers\User;

use Illuminate\Http\Request;

use App\Http\Requests;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\DB;
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/7/6 0006
 * Time: 上午 11:31
 */
class JoinController extends Controller
{
    public function getJoin()
    {
        try
        {
            $joins = DB::table('join_us')->get();
            return json_encode(['msg'=>1,'data' => $joins[0]]);
        }
        catch (\Exception $e)
        {
            $info =  $e->getMessage().'failed line:'.$e->getLine().'failed string:'.$e->getTraceAsString();
            return json_encode(['msg'=>0,'data' => $info]);
        }
    }
}